﻿using System;
using System.Collections;

namespace Bingo
{
	abstract public class Person : Actions
	{
		private string name;
		private int age;
		private int sex;
		private string address;
		private DateTime birthday;

		public Person (Hashtable personInfo)
		{
			name = Convert.ToString (personInfo["name"]);
			age = Convert.ToInt32 (personInfo["age"]);
			sex = Convert.ToInt32 (personInfo["sex"]);
			address = Convert.ToString (personInfo["address"]);
			birthday = Convert.ToDateTime (personInfo["birthday"]);
		}

		public void dressUp ()
		{
		}

		public string say ()
		{
			string humanType;
			switch (sex) {
			case 0:
				humanType = "girl";
				break;
			case 1:
				humanType = "boy";
				break;
			default :
				humanType = "yuri";
				break;
			}
			return "My name is " + name + " and I am " + Convert.ToString(age) + "years old " + humanType;
		}
	}
}

